import request from "@/utils/request";

// 查询有商品的类目列表
export function selectAlreadyList(query) {
  return request({
    url: '/gather/gather/collectProductCategory/selectAlreadyList',
    method: 'get',
    params: query
  })
}

// 商品属性
export function categoryInfo(id) {
  return request({
    url: '/gather/aliexpress/category/getCategoryInfoById?id=' + id,
    method: 'get'
  })
}

// 查询采集商品
export function getCollectProduct(id) {
  return request({
    url: '/gather/gather/collectProduct/' + id,
    method: 'get'
  })
}

// 获取品牌列表
export function getBrand() {
  return request({
    url: '/gather/gather/productBrand/selectList',
    method: 'get'
  })
}

// 获取商品标签的选择列表
export function getSelect() {
  return request({
    url: '/gather/gather/productClassify/getSelectList',
    method: 'get'
  })
}

// 获取区域定价国家选择列表
export function getArea() {
  return request({
    // url: '/gather/gather/productArea/getSelectList',
    url: '/gather/gather/productArea64/queryArea64ListInfo',
    method: 'get'
  })
}

// 根据标题关键词生成标题
export function createTitle(query) {
  return request({
    url: '/gather/gather/chatgpt/createTitle',
    method: 'get',
    params: query
  })
}

// 根据详情关键词生成详情
export function createProductDescription(query) {
  return request({
    url: '/gather/chatgpt/createProductDescription',
    method: 'get',
    params: query
  })
}

// 获取海关编码选择列表
export function getHsCode(query) {
  return request({
    url: '/gather/gather/collectProduct/getHsCodeList',
    method: 'get',
    params: query
  })
}
